package com.sailing.lianxi.design.single;

import sun.security.jca.GetInstance;

/**
 * 懒汉模式 ，线程安全
 * @author Administrator
 *
 */
public class Singleton1 {

	private static Singleton1 obj = null;
	
	private Singleton1(){};
	
	public static Singleton1 getInstance(){
		if(null == obj){
			obj = new Singleton1();
		}
		return obj;
	}
}
